package com.iengoo.freshdrp.service.service;

import com.iengoo.freshdrp.service.entity.Goods;

import java.util.List;

public interface GoodsService {
    Goods findById(Integer id);
    Goods findByName(String name);

    /**
     * 查询
     * @return
     */
    List<Goods> findAll();

    /**
     *
     * @param goods
     */
    void create(Goods goods);

    void deleteById(Integer id);

    /**
     * 根据ID 修改数据
     * @param goods
     */
    void updateById(Goods goods);
}
